package cn.hchaojie.javase.day01;

public class DemoOperator2 {
	public static void main(String[] args) {
		int i = 5;
		i += 3;		// i = i + 3;
		System.out.println(8);
		
		
		// 十进制：100 << 2		= 10000
		// 二进制：1 << 2		= 100 = (十进制的4)
		
		int j = 3 << 2;		// 11 << 2 = 1100 = 
		System.out.println(j);
		
		int k = 5 << 8;
		System.out.println(k);
		System.out.println(5 * 256);
		
		// k = k >> 1;	
		k >>= 1;
		System.out.println(k);
		
		
		int total = 35;
		double size = 10;
		
		double page = total / size;
		System.out.println((int) Math.ceil(page));
		System.out.println((int) Math.floor(page));
		
		double r = Math.random();	// [0, 1)

		// [50 - 100]
		
		
		
	}
}
